<template>
	<view class="bg-white" style="width: 100vw; height: 100vh;">
		<!-- <button type="default" @click="upload">上传</button>
		<image src="http://192.168.1.100:8080/xwb/img/%E8%B6%B3%E7%90%83%E5%91%A8%E5%88%8A_1620377996168.jpeg" mode=""></image> -->
		<cu-custom bgColor="bg-white" :isBack="true">
			<block slot="content">
				<text style="font-size: 32rpx; color: #333333; font-weight: bold;">关于我们</text>
			</block>
		</cu-custom>
		<view class="flex justify-between" style="padding: 32rpx 32rpx;">
			<view class="field-name" style="color: #333333; font-size: 32rpx;">用户协议</view>
			<view class="flex justify-end align-center">
				<view class="cuIcon-right" style="margin-left: 16rpx; font-size: 32rpx;"></view>
			</view>
		</view>
		<view class="flex justify-between" style="padding: 32rpx 32rpx;">
			<view class="field-name" style="color: #333333; font-size: 32rpx;">社区规范</view>
			<view class="flex justify-end align-center">
				<view class="cuIcon-right" style="margin-left: 16rpx; font-size: 32rpx;"></view>
			</view>
		</view>
		<view class="flex justify-between" style="padding: 32rpx 32rpx;">
			<view class="field-name" style="color: #333333; font-size: 32rpx;">隐私条款</view>
			<view class="flex justify-end align-center">
				<view class="cuIcon-right" style="margin-left: 16rpx; font-size: 32rpx;"></view>
			</view>
		</view>
		<view class="flex justify-between" style="padding: 32rpx 32rpx;">
			<view class="field-name" style="color: #333333; font-size: 32rpx;">应用权限说明</view>
			<view class="flex justify-end align-center">
				<view class="cuIcon-right" style="margin-left: 16rpx; font-size: 32rpx;"></view>
			</view>
		</view>
		<view class="flex justify-between" style="padding: 32rpx 32rpx;">
			<view class="field-name" style="color: #333333; font-size: 32rpx;">第三方SDK目录</view>
			<view class="flex justify-end align-center">
				<view class="cuIcon-right" style="margin-left: 16rpx; font-size: 32rpx;"></view>
			</view>
		</view>
		<view class="flex justify-between" style="padding: 32rpx 32rpx;">
			<view class="field-name" style="color: #333333; font-size: 32rpx;">版权信息</view>
			<view class="flex justify-end align-center">
				<view class="cuIcon-right" style="margin-left: 16rpx; font-size: 32rpx;"></view>
			</view>
		</view>
		<view class="flex justify-between" style="padding: 32rpx 32rpx;">
			<view class="field-name" style="color: #333333; font-size: 32rpx;">相关许可证</view>
			<view class="flex justify-end align-center">
				<view class="cuIcon-right" style="margin-left: 16rpx; font-size: 32rpx;"></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		mounted() {
			
		},
		methods: {
			upload() {
				uni.chooseImage({
					count: 6, //默认9
					// sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图，默认二者都有
					// sourceType: ['album'], //从相册选择
				    success: (chooseImageRes) => {
				        const tempFilePaths = chooseImageRes.tempFilePaths;
						console.log(chooseImageRes)
						console.log(tempFilePaths)
						console.log(tempFilePaths[0])
				        uni.uploadFile({
				            url: 'http://192.168.1.100:8080/xwb/edu/file/upload', //仅为示例，非真实的接口地址
				            filePath: tempFilePaths[0],
				            name: 'file',
				            formData: {
				                'biz': 'img'
				            },
				            success: (res) => {
								console.log(res)
								console.log(res.data)
								let data = JSON.parse(res.data);
				                if(data.success) {
									//data.message 为图片全url
									console.log(data.message)
								}
				            }
				        });
				    }
				});
			}
		}
	}
</script>

<style>
</style>
